<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Perf.Entities.Calendars.RepeatingHoliday</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Perf-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >Perf</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="Perf-module.html">Package&nbsp;Perf</a> ::
        <a href="Perf.Entities-module.html">Package&nbsp;Entities</a> ::
        <a href="Perf.Entities.Calendars-module.html">Package&nbsp;Calendars</a> ::
        Module&nbsp;RepeatingHoliday
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="Perf.Entities.Calendars.RepeatingHoliday-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="Perf.Entities.Calendars.RepeatingHoliday-module.html">Module Perf.Entities.Calendars.RepeatingHoliday</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Module Perf.Entities.Calendars.Holiday=Perf.Entities.Calendars.Holiday-module.html,Class Perf.Entities.Calendars.Holiday.Holiday=Perf.Entities.Calendars.Holiday.Holiday-class.html"><a title="Perf.Entities.Calendars.Holiday
Perf.Entities.Calendars.Holiday.Holiday" class="py-name" href="#" onclick="return doclink('link-0', 'Holiday', 'link-0');">Holiday</a></tt> <tt class="py-keyword">import</tt> <tt id="link-1" class="py-name"><a title="Perf.Entities.Calendars.Holiday
Perf.Entities.Calendars.Holiday.Holiday" class="py-name" href="#" onclick="return doclink('link-1', 'Holiday', 'link-0');">Holiday</a></tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"> </tt>
<a name="RepeatingHoliday"></a><div id="RepeatingHoliday-def"><a name="L3"></a><tt class="py-lineno"> 3</tt> <a class="py-toggle" href="#" id="RepeatingHoliday-toggle" onclick="return toggle('RepeatingHoliday');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="Perf.Entities.Calendars.RepeatingHoliday.RepeatingHoliday-class.html">RepeatingHoliday</a> <tt class="py-op">(</tt><tt class="py-base-class">Holiday</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RepeatingHoliday-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="RepeatingHoliday-expanded"><a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line">    <tt class="py-docstring">'''</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-docstring">    Class to represent holidays that happen on the same day each year</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-docstring">    '''</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"> </tt>
<a name="RepeatingHoliday.__init__"></a><div id="RepeatingHoliday.__init__-def"><a name="L8"></a><tt class="py-lineno"> 8</tt> <a class="py-toggle" href="#" id="RepeatingHoliday.__init__-toggle" onclick="return toggle('RepeatingHoliday.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Perf.Entities.Calendars.RepeatingHoliday.RepeatingHoliday-class.html#__init__">__init__</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">description</tt><tt class="py-op">,</tt> <tt class="py-param">month</tt><tt class="py-op">,</tt> <tt class="py-param">day</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RepeatingHoliday.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="RepeatingHoliday.__init__-expanded"><a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line">        <tt id="link-2" class="py-name"><a title="Perf.Entities.Calendars.Holiday
Perf.Entities.Calendars.Holiday.Holiday" class="py-name" href="#" onclick="return doclink('link-2', 'Holiday', 'link-0');">Holiday</a></tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Method Perf.Entities.Calendars.Calendar.Calendar.__init__()=Perf.Entities.Calendars.Calendar.Calendar-class.html#__init__,Method Perf.Entities.Calendars.CompositeCalendar.CompositeCalendar.__init__()=Perf.Entities.Calendars.CompositeCalendar.CompositeCalendar-class.html#__init__,Method Perf.Entities.Calendars.Holiday.Holiday.__init__()=Perf.Entities.Calendars.Holiday.Holiday-class.html#__init__,Method Perf.Entities.Calendars.RepeatingHoliday.RepeatingHoliday.__init__()=Perf.Entities.Calendars.RepeatingHoliday.RepeatingHoliday-class.html#__init__,Method Perf.Entities.Calendars.SimpleCalendar.SimpleCalendar.__init__()=Perf.Entities.Calendars.SimpleCalendar.SimpleCalendar-class.html#__init__,Method Perf.Entities.Calendars.SimpleHoliday.SimpleHoliday.__init__()=Perf.Entities.Calendars.SimpleHoliday.SimpleHoliday-class.html#__init__,Method Perf.Entities.Calendars.UnionCalendar.UnionCalendar.__init__()=Perf.Entities.Calendars.UnionCalendar.UnionCalendar-class.html#__init__,Method Perf.Entities.Parties.CompositeParty.CompositeParty.__init__()=Perf.Entities.Parties.CompositeParty.CompositeParty-class.html#__init__,Method Perf.Entities.Parties.Party.Party.__init__()=Perf.Entities.Parties.Party.Party-class.html#__init__,Method Perf.Entities.Parties.Person.Person.__init__()=Perf.Entities.Parties.Person.Person-class.html#__init__,Method Perf.Entities.Parties.Portfolio.Portfolio.__init__()=Perf.Entities.Parties.Portfolio.Portfolio-class.html#__init__,Method Perf.Entities.Prices.Price.Price.__init__()=Perf.Entities.Prices.Price.Price-class.html#__init__,Method Perf.Entities.Products.Component.Component.__init__()=Perf.Entities.Products.Component.Component-class.html#__init__,Method Perf.Entities.Products.Composite.Composite.__init__()=Perf.Entities.Products.Composite.Composite-class.html#__init__,Method Perf.Entities.Products.Currency.Currency.__init__()=Perf.Entities.Products.Currency.Currency-class.html#__init__,Method Perf.Entities.Products.Dividend.Dividend.__init__()=Perf.Entities.Products.Dividend.Dividend-class.html#__init__,Method Perf.Entities.Products.Product.Product.__init__()=Perf.Entities.Products.Product.Product-class.html#__init__,Method Perf.Entities.Products.Stock.Stock.__init__()=Perf.Entities.Products.Stock.Stock-class.html#__init__,Method Perf.Entities.Tags.Tag.Tag.__init__()=Perf.Entities.Tags.Tag.Tag-class.html#__init__,Method Perf.Entities.Tags.TagSpecification.TagSpecification.__init__()=Perf.Entities.Tags.TagSpecification.TagSpecification-class.html#__init__"><a title="Perf.Entities.Calendars.Calendar.Calendar.__init__
Perf.Entities.Calendars.CompositeCalendar.CompositeCalendar.__init__
Perf.Entities.Calendars.Holiday.Holiday.__init__
Perf.Entities.Calendars.RepeatingHoliday.RepeatingHoliday.__init__
Perf.Entities.Calendars.SimpleCalendar.SimpleCalendar.__init__
Perf.Entities.Calendars.SimpleHoliday.SimpleHoliday.__init__
Perf.Entities.Calendars.UnionCalendar.UnionCalendar.__init__
Perf.Entities.Parties.CompositeParty.CompositeParty.__init__
Perf.Entities.Parties.Party.Party.__init__
Perf.Entities.Parties.Person.Person.__init__
Perf.Entities.Parties.Portfolio.Portfolio.__init__
Perf.Entities.Prices.Price.Price.__init__
Perf.Entities.Products.Component.Component.__init__
Perf.Entities.Products.Composite.Composite.__init__
Perf.Entities.Products.Currency.Currency.__init__
Perf.Entities.Products.Dividend.Dividend.__init__
Perf.Entities.Products.Product.Product.__init__
Perf.Entities.Products.Stock.Stock.__init__
Perf.Entities.Tags.Tag.Tag.__init__
Perf.Entities.Tags.TagSpecification.TagSpecification.__init__" class="py-name" href="#" onclick="return doclink('link-3', '__init__', 'link-3');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">description</tt><tt class="py-op">)</tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">day</tt> <tt class="py-op">=</tt> <tt class="py-name">day</tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">month</tt> <tt class="py-op">=</tt> <tt class="py-name">month</tt> </tt>
</div><a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line">         </tt>
<a name="RepeatingHoliday.__eq__"></a><div id="RepeatingHoliday.__eq__-def"><a name="L13"></a><tt class="py-lineno">13</tt> <a class="py-toggle" href="#" id="RepeatingHoliday.__eq__-toggle" onclick="return toggle('RepeatingHoliday.__eq__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Perf.Entities.Calendars.RepeatingHoliday.RepeatingHoliday-class.html#__eq__">__eq__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">other</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RepeatingHoliday.__eq__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="RepeatingHoliday.__eq__-expanded"><a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">day</tt> <tt class="py-op">==</tt> <tt class="py-name">other</tt><tt class="py-op">.</tt><tt class="py-name">day</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">month</tt> <tt class="py-op">==</tt> <tt class="py-name">other</tt><tt class="py-op">.</tt><tt class="py-name">month</tt><tt class="py-op">)</tt> </tt>
</div><a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line">         </tt>
<a name="RepeatingHoliday.__repr__"></a><div id="RepeatingHoliday.__repr__-def"><a name="L16"></a><tt class="py-lineno">16</tt> <a class="py-toggle" href="#" id="RepeatingHoliday.__repr__-toggle" onclick="return toggle('RepeatingHoliday.__repr__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Perf.Entities.Calendars.RepeatingHoliday.RepeatingHoliday-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RepeatingHoliday.__repr__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="RepeatingHoliday.__repr__-expanded"><a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">"&lt;RepeatingHoliday(%d,%d)&gt;"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">day</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">month</tt><tt class="py-op">)</tt> </tt>
</div><a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line"> </tt>
<a name="RepeatingHoliday.get_day"></a><div id="RepeatingHoliday.get_day-def"><a name="L19"></a><tt class="py-lineno">19</tt> <a class="py-toggle" href="#" id="RepeatingHoliday.get_day-toggle" onclick="return toggle('RepeatingHoliday.get_day');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Perf.Entities.Calendars.RepeatingHoliday.RepeatingHoliday-class.html#get_day">get_day</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RepeatingHoliday.get_day-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="RepeatingHoliday.get_day-expanded"><a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">day</tt> </tt>
</div><a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line">     </tt>
<a name="RepeatingHoliday.isholiday"></a><div id="RepeatingHoliday.isholiday-def"><a name="L22"></a><tt class="py-lineno">22</tt> <a class="py-toggle" href="#" id="RepeatingHoliday.isholiday-toggle" onclick="return toggle('RepeatingHoliday.isholiday');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Perf.Entities.Calendars.RepeatingHoliday.RepeatingHoliday-class.html#isholiday">isholiday</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">when</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RepeatingHoliday.isholiday-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="RepeatingHoliday.isholiday-expanded"><a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">month</tt> <tt class="py-op">==</tt> <tt class="py-name">when</tt><tt class="py-op">.</tt><tt class="py-name">month</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">day</tt> <tt class="py-op">==</tt> <tt class="py-name">when</tt><tt class="py-op">.</tt><tt class="py-name">day</tt> </tt>
</div><a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line">     </tt>
<a name="RepeatingHoliday.text"></a><div id="RepeatingHoliday.text-def"><a name="L25"></a><tt class="py-lineno">25</tt> <a class="py-toggle" href="#" id="RepeatingHoliday.text-toggle" onclick="return toggle('RepeatingHoliday.text');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Perf.Entities.Calendars.RepeatingHoliday.RepeatingHoliday-class.html#text">text</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RepeatingHoliday.text-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="RepeatingHoliday.text-expanded"><a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">"%d-%d"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">day</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">month</tt><tt class="py-op">)</tt> </tt>
</div><a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line">     </tt>
<a name="RepeatingHoliday.type"></a><div id="RepeatingHoliday.type-def"><a name="L28"></a><tt class="py-lineno">28</tt> <a class="py-toggle" href="#" id="RepeatingHoliday.type-toggle" onclick="return toggle('RepeatingHoliday.type');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="Perf.Entities.Calendars.RepeatingHoliday.RepeatingHoliday-class.html#type">type</a> <tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RepeatingHoliday.type-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="RepeatingHoliday.type-expanded"><a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">"Repeating"</tt> </tt>
</div><a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line">     </tt>
<a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line">    <tt id="link-4" class="py-name" targets="Static Method Perf.Entities.Calendars.RepeatingHoliday.RepeatingHoliday.type()=Perf.Entities.Calendars.RepeatingHoliday.RepeatingHoliday-class.html#type,Static Method Perf.Entities.Calendars.SimpleHoliday.SimpleHoliday.type()=Perf.Entities.Calendars.SimpleHoliday.SimpleHoliday-class.html#type"><a title="Perf.Entities.Calendars.RepeatingHoliday.RepeatingHoliday.type
Perf.Entities.Calendars.SimpleHoliday.SimpleHoliday.type" class="py-name" href="#" onclick="return doclink('link-4', 'type', 'link-4');">type</a></tt> <tt class="py-op">=</tt> <tt class="py-name">staticmethod</tt> <tt class="py-op">(</tt><tt id="link-5" class="py-name"><a title="Perf.Entities.Calendars.RepeatingHoliday.RepeatingHoliday.type
Perf.Entities.Calendars.SimpleHoliday.SimpleHoliday.type" class="py-name" href="#" onclick="return doclink('link-5', 'type', 'link-4');">type</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="Perf-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >Perf</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed Apr 20 18:22:50 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
